package br.ufpe.cin.msc.jrsj2.recommender.persistence.entity;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;

@Entity
public class Client {

	@Id
	private String id;

	@Column(unique = true, nullable = false, length = 255)
	private String clientHash;

	@OneToMany
	private List<Profile> programs;

	public Client(String id, String clientHash) {
		this.id = id;
		this.clientHash = clientHash;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public void setClientHash(String clientHash) {
		this.clientHash = clientHash;
	}

	public String getClientHash() {
		return clientHash;
	}

	public void setPrograms(List<Profile> programs) {
		this.programs = programs;
	}

	public List<Profile> getPrograms() {
		return programs;
	}

}
